<%-- 
    Document   : home_category_father
    Created on : 05-ene-2012, 0:02:34
    Author     : tpgalan
--%>

<%@page import="com.sdd.plains.CategoryPlain"%>
<%
CategoryPlain father = (CategoryPlain) request.getSession().getAttribute("father");
%>
<p class="flip" id="cat<%=father.getCategoryId()%>"><%=father.getName()%></p>
<div class="panel" id="cat<%=father.getCategoryId()%>content">
<%
for(CategoryPlain childs:father.getSubcategories()){
%>
    <p class="catelem" id="cat<%=childs.getCategoryId()%>"><%=childs.getName()%></p>
<%}
%>
</div>